<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pAutoinvest
 *
 * @ORM\Table(name="p2p_autoinvest", indexes={@ORM\Index(name="au_uid", columns={"au_uid"}), @ORM\Index(name="au_uid_2", columns={"au_uid"}), @ORM\Index(name="au_uid_3", columns={"au_uid"}), @ORM\Index(name="au_uid_4", columns={"au_uid"})})
 * @ORM\Entity
 */
class P2pAutoinvest
{
    /**
     * @var integer
     *
     * @ORM\Column(name="au_uid", type="integer", nullable=false)
     */
    private $auUid;

    /**
     * @var integer
     *
     * @ORM\Column(name="au_topamount", type="integer", nullable=false)
     */
    private $auTopamount;

    /**
     * @var integer
     *
     * @ORM\Column(name="au_lowamount", type="integer", nullable=false)
     */
    private $auLowamount;

    /**
     * @var integer
     *
     * @ORM\Column(name="au_rate", type="smallint", nullable=false)
     */
    private $auRate;

    /**
     * @var integer
     *
     * @ORM\Column(name="au_deadline", type="integer", nullable=false)
     */
    private $auDeadline;

    /**
     * @var float
     *
     * @ORM\Column(name="au_remaining", type="float", precision=10, scale=2, nullable=false)
     */
    private $auRemaining;

    /**
     * @var boolean
     *
     * @ORM\Column(name="au_sendmsg", type="boolean", nullable=false)
     */
    private $auSendmsg = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="au_status", type="string", nullable=false)
     */
    private $auStatus = 'close';

    /**
     * @var integer
     *
     * @ORM\Column(name="au_settime", type="integer", nullable=false)
     */
    private $auSettime;

    /**
     * @var integer
     *
     * @ORM\Column(name="auid", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $auid;



    /**
     * Set auUid
     *
     * @param integer $auUid
     *
     * @return P2pAutoinvest
     */
    public function setAuUid($auUid)
    {
        $this->auUid = $auUid;

        return $this;
    }

    /**
     * Get auUid
     *
     * @return integer
     */
    public function getAuUid()
    {
        return $this->auUid;
    }

    /**
     * Set auTopamount
     *
     * @param integer $auTopamount
     *
     * @return P2pAutoinvest
     */
    public function setAuTopamount($auTopamount)
    {
        $this->auTopamount = $auTopamount;

        return $this;
    }

    /**
     * Get auTopamount
     *
     * @return integer
     */
    public function getAuTopamount()
    {
        return $this->auTopamount;
    }

    /**
     * Set auLowamount
     *
     * @param integer $auLowamount
     *
     * @return P2pAutoinvest
     */
    public function setAuLowamount($auLowamount)
    {
        $this->auLowamount = $auLowamount;

        return $this;
    }

    /**
     * Get auLowamount
     *
     * @return integer
     */
    public function getAuLowamount()
    {
        return $this->auLowamount;
    }

    /**
     * Set auRate
     *
     * @param integer $auRate
     *
     * @return P2pAutoinvest
     */
    public function setAuRate($auRate)
    {
        $this->auRate = $auRate;

        return $this;
    }

    /**
     * Get auRate
     *
     * @return integer
     */
    public function getAuRate()
    {
        return $this->auRate;
    }

    /**
     * Set auDeadline
     *
     * @param integer $auDeadline
     *
     * @return P2pAutoinvest
     */
    public function setAuDeadline($auDeadline)
    {
        $this->auDeadline = $auDeadline;

        return $this;
    }

    /**
     * Get auDeadline
     *
     * @return integer
     */
    public function getAuDeadline()
    {
        return $this->auDeadline;
    }

    /**
     * Set auRemaining
     *
     * @param float $auRemaining
     *
     * @return P2pAutoinvest
     */
    public function setAuRemaining($auRemaining)
    {
        $this->auRemaining = $auRemaining;

        return $this;
    }

    /**
     * Get auRemaining
     *
     * @return float
     */
    public function getAuRemaining()
    {
        return $this->auRemaining;
    }

    /**
     * Set auSendmsg
     *
     * @param boolean $auSendmsg
     *
     * @return P2pAutoinvest
     */
    public function setAuSendmsg($auSendmsg)
    {
        $this->auSendmsg = $auSendmsg;

        return $this;
    }

    /**
     * Get auSendmsg
     *
     * @return boolean
     */
    public function getAuSendmsg()
    {
        return $this->auSendmsg;
    }

    /**
     * Set auStatus
     *
     * @param string $auStatus
     *
     * @return P2pAutoinvest
     */
    public function setAuStatus($auStatus)
    {
        $this->auStatus = $auStatus;

        return $this;
    }

    /**
     * Get auStatus
     *
     * @return string
     */
    public function getAuStatus()
    {
        return $this->auStatus;
    }

    /**
     * Set auSettime
     *
     * @param integer $auSettime
     *
     * @return P2pAutoinvest
     */
    public function setAuSettime($auSettime)
    {
        $this->auSettime = $auSettime;

        return $this;
    }

    /**
     * Get auSettime
     *
     * @return integer
     */
    public function getAuSettime()
    {
        return $this->auSettime;
    }

    /**
     * Get auid
     *
     * @return integer
     */
    public function getAuid()
    {
        return $this->auid;
    }
}
